extends TextureRect

var controller
var pressed = false
var can_press = false

# Called when the node enters the scene tree for the first time.
func _ready():
	controller = get_node("/root/Controller")
	controller.ui.hide()

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
	if (can_press and (not pressed) and Input.is_action_pressed("jump")):
		pressed = true
		controller.snd_manager.play_sfx("cancel")
		controller.root.change_map("tutorial",0)
	
func _on_timer_out():
	can_press = true
